package com.csist.service.impl;

import com.csist.mapper.ComputerMapper;
import com.csist.pojo.Computer;
import com.csist.service.ComputerService;
import com.csist.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * Description:
 *
 * @author YF
 * @date 2024/6/17 08:52
 */
public class ComputerServiceImpl implements ComputerService {
    private SqlSession sqlSession;
    private ComputerMapper mapper;
   public  ComputerServiceImpl(){
       sqlSession= SqlSessionUtil.getSqlsession();
        mapper=sqlSession.getMapper(ComputerMapper.class);
   }
    @Override
    public List<Computer> selectAll() {
        return mapper.selectAll();
    }
}
